:root {
  --black: #252519;
  --side-nav-width: 240px;
  --min-main-width: 300px;
}
/* custom scroll */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-thumb {
  background-color: #cccccc;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 20px;

  background-color: var(--bg-color);
  color: var(--color);
  /* transition: background-color 0.5s; */
  /* min-width: 400px; */
}
body.light {
  --bg-color: white;
  --color: #252519;
  --color-1: #212529;
  --hover-color-1: #212529;
  --code-bg: #f5f5f5;
  --link-color: #261a3b;
  --input-bg: #f1f1f1;
  --link-active-color: #00ff0054;
}
body.dark {
  --bg-color: #161b22;
  --color: rgb(201, 209, 217);
  --color-1: #c9d1d9;
  --hover-color-1: white;
  --code-bg: #0d1117;
  --link-color: #f6f6f6;
  --input-bg: white;
  --link-active-color: #00ff0054;
}
pre {
  padding: 15px;
  margin: 0;
  font-size: 14px;
  /* position: relative; */
  overflow-x: scroll;
}

pre .buttons {
  color: var(--color);
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}
pre .buttons button {
  color: inherit;
  background: transparent;
  border: none;
  cursor: inherit;
}
pre .buttons button:hover {
  color: #008cff;
}
code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
  color: rgb(231, 76, 60);
}
.language-solidity {
  display: block;
  color: var(--color);
}
a,
a:visited {
  color: var(--link-color);
}
h2 {
  font-size: 32px;
  line-height: 40px;
}
em {
  font-style: italic;
}

pre {
  background-color: var(--code-bg);
}

/* code */

/* foundation */
body.light .hljs {
  background: #eee;
  color: black;
}

body.light .hljs-link,
body.light .hljs-emphasis,
body.light .hljs-attribute,
body.light .hljs-addition {
  color: #070;
}

body.light .hljs-emphasis {
  font-style: italic;
}

body.light .hljs-strong,
body.light .hljs-string,
body.light .hljs-deletion {
  color: #d14;
}

body.light .hljs-strong {
  font-weight: bold;
}

body.light .hljs-quote,
body.light .hljs-comment {
  color: #5f5f55;
  font-style: italic;
}

body.light .hljs-section,
body.light .hljs-title {
  color: #900;
}

body.light .hljs-class .hljs-title,
body.light .hljs-title.class_,
body.light .hljs-type {
  color: #458;
}

body.light .hljs-variable,
body.light .hljs-template-variable {
  color: #336699;
}

body.light .hljs-bullet {
  color: #997700;
}

body.light .hljs-meta {
  color: #3344bb;
}

body.light .hljs-code,
body.light .hljs-number,
body.light .hljs-literal,
body.light .hljs-keyword,
body.light .hljs-selector-tag {
  color: #0758fc;
}

body.light .hljs-regexp {
  background-color: #fff0ff;
  color: #880088;
}

body.light .hljs-symbol {
  color: #990073;
}

body.light .hljs-tag,
body.light .hljs-name,
body.light .hljs-selector-id,
body.light .hljs-selector-class {
  color: #007700;
}

/*!
  Theme: GitHub Dark
  Description: Dark theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15

  Outdated base version: https://github.com/primer/github-syntax-dark
  Current colors taken from GitHub's CSS
*/

body.dark .hljs {
  color: #c9d1d9;
  background: #0d1117;
}

body.dark .hljs-doctag,
body.dark .hljs-keyword,
body.dark .hljs-meta .hljs-keyword,
body.dark .hljs-template-tag,
body.dark .hljs-template-variable,
body.dark .hljs-type,
body.dark .hljs-variable.language_ {
  color: #ff7b72;
}

body.dark .hljs-title,
body.dark .hljs-title.class_,
body.dark .hljs-title.class_.inherited__,
body.dark .hljs-title.function_ {
  color: #d2a8ff;
}

body.dark .hljs-attr,
body.dark .hljs-attribute,
body.dark .hljs-literal,
body.dark .hljs-meta,
body.dark .hljs-number,
body.dark .hljs-operator,
body.dark .hljs-variable,
body.dark .hljs-selector-attr,
body.dark .hljs-selector-class,
body.dark .hljs-selector-id {
  color: #79c0ff;
}

body.dark .hljs-regexp,
body.dark .hljs-string,
body.dark .hljs-meta .hljs-string {
  color: #a5d6ff;
}

body.dark .hljs-built_in,
body.dark .hljs-symbol {
  color: #ffa657;
}

body.dark .hljs-comment,
body.dark .hljs-code,
body.dark .hljs-formula {
  color: #8b949e;
}

body.dark .hljs-name,
body.dark .hljs-quote,
body.dark .hljs-selector-tag,
body.dark .hljs-selector-pseudo {
  color: #7ee787;
}

body.dark .hljs-subst {
  color: #c9d1d9;
}

body.dark .hljs-section {
  color: #1f6feb;
  font-weight: bold;
}

body.dark .hljs-bullet {
  color: #f2cc60;
}

body.dark .hljs-emphasis {
  color: #c9d1d9;
  font-style: italic;
}

body.dark .hljs-strong {
  color: #c9d1d9;
  font-weight: bold;
}

body.dark .hljs-addition {
  color: #aff5b4;
  background-color: #033a16;
}

body.dark .hljs-deletion {
  color: #ffdcd7;
  background-color: #67060c;
}

body.dark .hljs-char.escape_,
body.dark .hljs-link,
body.dark .hljs-params,
body.dark .hljs-property,
body.dark .hljs-punctuation,
body.dark .hljs-tag {
}

/* copy */
.copy-wrapper {
  position: relative;
  /* set to 100% to enable y scroll */
  height: 100%;
}
.copy {
  position: absolute;
  top: 0px;
  right: 0px;
  margin-top: 4px;
  margin-right: 12px;
  color: var(--color-1);
  background-color: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.copy:hover {
  color: var(--hover-color-1);
  transition: color linear 0.2s;
}
